package com.lby.graduation.controller;


import com.lby.graduation.entity.Orders;
import com.lby.graduation.service.OrdersService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 李兵耀
 * @since 2020-12-07
 */
@RestController
@RequestMapping("/orders")
public class OrdersController {
    @Resource
    private OrdersService ordersService;
    @GetMapping("/selectAll")
    public List<Orders> selectAll(){
        return ordersService.list();
    }

}
